{%extends "base.xhtml"%}
{% load i18n %}
{% load ham %}
{%block content%}
{% if form.has_errors %}
<p>{% trans "Your username and password didn't match. Please try again."%}</p>
{% endif %}

<form method="post" action="{%href "django.contrib.auth.views.login"%}">
<p><label for="id_username">{%trans "Username"%}</label>{{ form.username }}</p>
<p><label for="id_password">{%trans "Password"%}</label>{{ form.password }}</p>

<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
{%endblock%}
